Optimal. Leaf size=557 \[ \frac{b^{7/2} \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{g \cos (e+f x)}}{\sqrt{g} \sqrt [4]{b^2-a^2}}\right )}{a^3 f \sqrt{g} \left (b^2-a^2\right )^{3/4}}-\frac{b^2 \tan ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{a^3 f \sqrt{g}}+\frac{b^{7/2} \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{g \cos (e+f x)}}{\sqrt{g} \sqrt [4]{b^2-a^2}}\right )}{a^3 f \sqrt{g} \left (b^2-a^2\right )^{3/4}}-\frac{b^2 \tanh ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{a^3 f \sqrt{g}}-\frac{b^3 \sqrt{\cos (e+f x)} \Pi \left (\frac{2 b}{b-\sqrt{b^2-a^2}};\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 f \left (a^2-b \left (b-\sqrt{b^2-a^2}\right )\right ) \sqrt{g \cos (e+f x)}}-\frac{b^3 \sqrt{\cos (e+f x)} \Pi \left (\frac{2 b}{b+\sqrt{b^2-a^2}};\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 f \left (a^2-b \left (\sqrt{b^2-a^2}+b\right )\right ) \sqrt{g \cos (e+f x)}}+\frac{b \csc (e+f x) \sqrt{g \cos (e+f x)}}{a^2 f g}-\frac{b \sqrt{\cos (e+f x)} F\left (\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 f \sqrt{g \cos (e+f x)}}-\frac{3 \tan ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{4 a f \sqrt{g}}-\frac{\csc ^2(e+f x) \sqrt{g \cos (e+f x)}}{2 a f g}-\frac{3 \tanh ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{4 a f \sqrt{g}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.03165, antiderivative size = 557, normalized size of antiderivative = 1., number of steps used = 25, number of rules used = 15, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.454, Rules used = {2898, 2565, 329, 212, 206, 203, 2570, 2642, 2641, 290, 2702, 2807, 2805, 208, 205} \[ \frac{b^{7/2} \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{g \cos (e+f x)}}{\sqrt{g} \sqrt [4]{b^2-a^2}}\right )}{a^3 f \sqrt{g} \left (b^2-a^2\right )^{3/4}}-\frac{b^2 \tan ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{a^3 f \sqrt{g}}+\frac{b^{7/2} \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{g \cos (e+f x)}}{\sqrt{g} \sqrt [4]{b^2-a^2}}\right )}{a^3 f \sqrt{g} \left (b^2-a^2\right )^{3/4}}-\frac{b^2 \tanh ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{a^3 f \sqrt{g}}-\frac{b^3 \sqrt{\cos (e+f x)} \Pi \left (\frac{2 b}{b-\sqrt{b^2-a^2}};\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 f \left (a^2-b \left (b-\sqrt{b^2-a^2}\right )\right ) \sqrt{g \cos (e+f x)}}-\frac{b^3 \sqrt{\cos (e+f x)} \Pi \left (\frac{2 b}{b+\sqrt{b^2-a^2}};\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 f \left (a^2-b \left (\sqrt{b^2-a^2}+b\right )\right ) \sqrt{g \cos (e+f x)}}+\frac{b \csc (e+f x) \sqrt{g \cos (e+f x)}}{a^2 f g}-\frac{b \sqrt{\cos (e+f x)} F\left (\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 f \sqrt{g \cos (e+f x)}}-\frac{3 \tan ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{4 a f \sqrt{g}}-\frac{\csc ^2(e+f x) \sqrt{g \cos (e+f x)}}{2 a f g}-\frac{3 \tanh ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{4 a f \sqrt{g}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2898
Rule 2565
Rule 329
Rule 212
Rule 206
Rule 203
Rule 2570
Rule 2642
Rule 2641
Rule 290
Rule 2702
Rule 2807
Rule 2805
Rule 208
Rule 205
Rubi steps
\begin{align*} \int \frac{\csc ^3(e+f x)}{\sqrt{g \cos (e+f x)} (a+b \sin (e+f x))} \, dx &=\int \left (\frac{b^2 \csc (e+f x)}{a^3 \sqrt{g \cos (e+f x)}}-\frac{b \csc ^2(e+f x)}{a^2 \sqrt{g \cos (e+f x)}}+\frac{\csc ^3(e+f x)}{a \sqrt{g \cos (e+f x)}}-\frac{b^3}{a^3 \sqrt{g \cos (e+f x)} (a+b \sin (e+f x))}\right ) \, dx\\ &=\frac{\int \frac{\csc ^3(e+f x)}{\sqrt{g \cos (e+f x)}} \, dx}{a}-\frac{b \int \frac{\csc ^2(e+f x)}{\sqrt{g \cos (e+f x)}} \, dx}{a^2}+\frac{b^2 \int \frac{\csc (e+f x)}{\sqrt{g \cos (e+f x)}} \, dx}{a^3}-\frac{b^3 \int \frac{1}{\sqrt{g \cos (e+f x)} (a+b \sin (e+f x))} \, dx}{a^3}\\ &=\frac{b \sqrt{g \cos (e+f x)} \csc (e+f x)}{a^2 f g}-\frac{b \int \frac{1}{\sqrt{g \cos (e+f x)}} \, dx}{2 a^2}+\frac{b^3 \int \frac{1}{\sqrt{g \cos (e+f x)} \left (\sqrt{-a^2+b^2}-b \cos (e+f x)\right )} \, dx}{2 a^2 \sqrt{-a^2+b^2}}+\frac{b^3 \int \frac{1}{\sqrt{g \cos (e+f x)} \left (\sqrt{-a^2+b^2}+b \cos (e+f x)\right )} \, dx}{2 a^2 \sqrt{-a^2+b^2}}-\frac{\operatorname{Subst}\left (\int \frac{1}{\sqrt{x} \left (1-\frac{x^2}{g^2}\right )^2} \, dx,x,g \cos (e+f x)\right )}{a f g}-\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{\sqrt{x} \left (1-\frac{x^2}{g^2}\right )} \, dx,x,g \cos (e+f x)\right )}{a^3 f g}-\frac{\left (b^4 g\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{x} \left (\left (a^2-b^2\right ) g^2+b^2 x^2\right )} \, dx,x,g \cos (e+f x)\right )}{a^3 f}\\ &=\frac{b \sqrt{g \cos (e+f x)} \csc (e+f x)}{a^2 f g}-\frac{\sqrt{g \cos (e+f x)} \csc ^2(e+f x)}{2 a f g}-\frac{3 \operatorname{Subst}\left (\int \frac{1}{\sqrt{x} \left (1-\frac{x^2}{g^2}\right )} \, dx,x,g \cos (e+f x)\right )}{4 a f g}-\frac{\left (2 b^2\right ) \operatorname{Subst}\left (\int \frac{1}{1-\frac{x^4}{g^2}} \, dx,x,\sqrt{g \cos (e+f x)}\right )}{a^3 f g}-\frac{\left (2 b^4 g\right ) \operatorname{Subst}\left (\int \frac{1}{\left (a^2-b^2\right ) g^2+b^2 x^4} \, dx,x,\sqrt{g \cos (e+f x)}\right )}{a^3 f}-\frac{\left (b \sqrt{\cos (e+f x)}\right ) \int \frac{1}{\sqrt{\cos (e+f x)}} \, dx}{2 a^2 \sqrt{g \cos (e+f x)}}+\frac{\left (b^3 \sqrt{\cos (e+f x)}\right ) \int \frac{1}{\sqrt{\cos (e+f x)} \left (\sqrt{-a^2+b^2}-b \cos (e+f x)\right )} \, dx}{2 a^2 \sqrt{-a^2+b^2} \sqrt{g \cos (e+f x)}}+\frac{\left (b^3 \sqrt{\cos (e+f x)}\right ) \int \frac{1}{\sqrt{\cos (e+f x)} \left (\sqrt{-a^2+b^2}+b \cos (e+f x)\right )} \, dx}{2 a^2 \sqrt{-a^2+b^2} \sqrt{g \cos (e+f x)}}\\ &=\frac{b \sqrt{g \cos (e+f x)} \csc (e+f x)}{a^2 f g}-\frac{\sqrt{g \cos (e+f x)} \csc ^2(e+f x)}{2 a f g}-\frac{b \sqrt{\cos (e+f x)} F\left (\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 f \sqrt{g \cos (e+f x)}}-\frac{b^3 \sqrt{\cos (e+f x)} \Pi \left (\frac{2 b}{b-\sqrt{-a^2+b^2}};\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 \sqrt{-a^2+b^2} \left (b-\sqrt{-a^2+b^2}\right ) f \sqrt{g \cos (e+f x)}}+\frac{b^3 \sqrt{\cos (e+f x)} \Pi \left (\frac{2 b}{b+\sqrt{-a^2+b^2}};\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 \sqrt{-a^2+b^2} \left (b+\sqrt{-a^2+b^2}\right ) f \sqrt{g \cos (e+f x)}}-\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{g-x^2} \, dx,x,\sqrt{g \cos (e+f x)}\right )}{a^3 f}-\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{g+x^2} \, dx,x,\sqrt{g \cos (e+f x)}\right )}{a^3 f}+\frac{b^4 \operatorname{Subst}\left (\int \frac{1}{\sqrt{-a^2+b^2} g-b x^2} \, dx,x,\sqrt{g \cos (e+f x)}\right )}{a^3 \sqrt{-a^2+b^2} f}+\frac{b^4 \operatorname{Subst}\left (\int \frac{1}{\sqrt{-a^2+b^2} g+b x^2} \, dx,x,\sqrt{g \cos (e+f x)}\right )}{a^3 \sqrt{-a^2+b^2} f}-\frac{3 \operatorname{Subst}\left (\int \frac{1}{1-\frac{x^4}{g^2}} \, dx,x,\sqrt{g \cos (e+f x)}\right )}{2 a f g}\\ &=-\frac{b^2 \tan ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{a^3 f \sqrt{g}}+\frac{b^{7/2} \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{g \cos (e+f x)}}{\sqrt [4]{-a^2+b^2} \sqrt{g}}\right )}{a^3 \left (-a^2+b^2\right )^{3/4} f \sqrt{g}}-\frac{b^2 \tanh ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{a^3 f \sqrt{g}}+\frac{b^{7/2} \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{g \cos (e+f x)}}{\sqrt [4]{-a^2+b^2} \sqrt{g}}\right )}{a^3 \left (-a^2+b^2\right )^{3/4} f \sqrt{g}}+\frac{b \sqrt{g \cos (e+f x)} \csc (e+f x)}{a^2 f g}-\frac{\sqrt{g \cos (e+f x)} \csc ^2(e+f x)}{2 a f g}-\frac{b \sqrt{\cos (e+f x)} F\left (\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 f \sqrt{g \cos (e+f x)}}-\frac{b^3 \sqrt{\cos (e+f x)} \Pi \left (\frac{2 b}{b-\sqrt{-a^2+b^2}};\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 \sqrt{-a^2+b^2} \left (b-\sqrt{-a^2+b^2}\right ) f \sqrt{g \cos (e+f x)}}+\frac{b^3 \sqrt{\cos (e+f x)} \Pi \left (\frac{2 b}{b+\sqrt{-a^2+b^2}};\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 \sqrt{-a^2+b^2} \left (b+\sqrt{-a^2+b^2}\right ) f \sqrt{g \cos (e+f x)}}-\frac{3 \operatorname{Subst}\left (\int \frac{1}{g-x^2} \, dx,x,\sqrt{g \cos (e+f x)}\right )}{4 a f}-\frac{3 \operatorname{Subst}\left (\int \frac{1}{g+x^2} \, dx,x,\sqrt{g \cos (e+f x)}\right )}{4 a f}\\ &=-\frac{3 \tan ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{4 a f \sqrt{g}}-\frac{b^2 \tan ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{a^3 f \sqrt{g}}+\frac{b^{7/2} \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{g \cos (e+f x)}}{\sqrt [4]{-a^2+b^2} \sqrt{g}}\right )}{a^3 \left (-a^2+b^2\right )^{3/4} f \sqrt{g}}-\frac{3 \tanh ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{4 a f \sqrt{g}}-\frac{b^2 \tanh ^{-1}\left (\frac{\sqrt{g \cos (e+f x)}}{\sqrt{g}}\right )}{a^3 f \sqrt{g}}+\frac{b^{7/2} \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{g \cos (e+f x)}}{\sqrt [4]{-a^2+b^2} \sqrt{g}}\right )}{a^3 \left (-a^2+b^2\right )^{3/4} f \sqrt{g}}+\frac{b \sqrt{g \cos (e+f x)} \csc (e+f x)}{a^2 f g}-\frac{\sqrt{g \cos (e+f x)} \csc ^2(e+f x)}{2 a f g}-\frac{b \sqrt{\cos (e+f x)} F\left (\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 f \sqrt{g \cos (e+f x)}}-\frac{b^3 \sqrt{\cos (e+f x)} \Pi \left (\frac{2 b}{b-\sqrt{-a^2+b^2}};\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 \sqrt{-a^2+b^2} \left (b-\sqrt{-a^2+b^2}\right ) f \sqrt{g \cos (e+f x)}}+\frac{b^3 \sqrt{\cos (e+f x)} \Pi \left (\frac{2 b}{b+\sqrt{-a^2+b^2}};\left .\frac{1}{2} (e+f x)\right |2\right )}{a^2 \sqrt{-a^2+b^2} \left (b+\sqrt{-a^2+b^2}\right ) f \sqrt{g \cos (e+f x)}}\\ \end{align*}
Mathematica [C] time = 30.5066, size = 2129, normalized size = 3.82 \[ \text{Result too large to show} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 3.082, size = 315, normalized size = 0.6 \begin{align*} -{\frac{3}{8\,af}\ln \left ({ \left ( 4\,g\cos \left ( 1/2\,fx+e/2 \right ) +2\,\sqrt{g}\sqrt{-2\, \left ( \sin \left ( 1/2\,fx+e/2 \right ) \right ) ^{2}g+g}-2\,g \right ) \left ( -1+\cos \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{-1}} \right ){\frac{1}{\sqrt{g}}}}-{\frac{1}{16\,afg}\sqrt{-2\, \left ( \sin \left ( 1/2\,fx+e/2 \right ) \right ) ^{2}g+g} \left ( \cos \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) +1 \right ) ^{-1}}-{\frac{3}{8\,af}\ln \left ({ \left ( -4\,g\cos \left ( 1/2\,fx+e/2 \right ) +2\,\sqrt{g}\sqrt{-2\, \left ( \sin \left ( 1/2\,fx+e/2 \right ) \right ) ^{2}g+g}-2\,g \right ) \left ( \cos \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) +1 \right ) ^{-1}} \right ){\frac{1}{\sqrt{g}}}}+{\frac{3}{4\,af}\ln \left ({ \left ( -2\,g+2\,\sqrt{-g}\sqrt{2\, \left ( \cos \left ( 1/2\,fx+e/2 \right ) \right ) ^{2}g-g} \right ) \left ( \cos \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{-1}} \right ){\frac{1}{\sqrt{-g}}}}+{\frac{1}{16\,afg}\sqrt{-2\, \left ( \sin \left ( 1/2\,fx+e/2 \right ) \right ) ^{2}g+g} \left ( -1+\cos \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{-1}}-{\frac{1}{8\,afg}\sqrt{2\, \left ( \cos \left ( 1/2\,fx+e/2 \right ) \right ) ^{2}g-g} \left ( \cos \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{-2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\csc ^{3}{\left (e + f x \right )}}{\sqrt{g \cos{\left (e + f x \right )}} \left (a + b \sin{\left (e + f x \right )}\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\csc \left (f x + e\right )^{3}}{\sqrt{g \cos \left (f x + e\right )}{\left (b \sin \left (f x + e\right ) + a\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]